<template>
  <div>
    <!-- 添加按钮 -->
    <el-button @click="willAdd" type="primary">添加</el-button>
    <!-- 表格 -->
    
    <list-vue @willUpdate="willUpdate"></list-vue>
    

    <!-- 弹框 -->
  
    <form-vue :info="info" ref="form"></form-vue>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import listVue from './components/list.vue'
import formVue from './components/form.vue'
import { toggle } from "../../mixins";
export default {
  components:{
    listVue,
    formVue,
  },
  mixins:[toggle],
  props: [],
  data() {
    return {};
  },
  computed: {
    ...mapGetters({}),
  },
  mounted() {},
  methods: {
    ...mapActions({}),
  },
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
.el-button{
  margin: @margin20 0;
}
</style>